
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type SystemCrudListRequest struct {

	Name string `json:"name" form:"name"`

	Mark string `json:"mark" form:"mark"`

	Level string `json:"level" form:"level"`

	Status string `json:"status" form:"status"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *SystemCrudListRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *SystemCrudListRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"name": "required",

		"mark": "required",

		"level": "required",

		"status": "required",

		"add_time": "required",

	}
}

func (r *SystemCrudListRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemCrudListRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *SystemCrudListRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
